Examples of Numeric Values and Write-WriteLn
INTEGER Values
In the following example, the value being formatted overrides the specified value for MinWidth:
 
will write '23456' to the file.
When MinWidth exceeds the width of the formatted value, spaces are prepended the value:
 
will write '  23456' to the file.
REAL Values
In the following example, a combination of MinWidth and DecPlaces values are used to format the value string. The value displays a total character length (including the decimal point) of six characters, and displays two-place decimal precision. The value is rounded to meet the specified display settings:
 
will write '789.13' to the file.
If the DecPlaces setting exceeds the precision of the value to be displayed, zeroes will be appended to bring the value up to the DecPlaces setting. MinWidth is overridden by both the value and the DecPlaces setting:
 
will write '789.128000' to the file.

Numeric and Data Formats : Data Formatting with Write and WriteLn : Examples of Numeric Values and Write-WriteLn

Nemetschek NA
Phone: 410.290.5114
Fax: 410.290.8050